package com.mccrea.pattern.adapter.objectadapter;

/**
 * @Classname Client
 * @Description 对象适配器测试
 * @Date 2021/5/8 0008 15:35
 * @Created by Mccrea_Gao
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("===== 对象适配器 =====");
        Phone phone = new Phone();
        phone.charge(new VoltageAdapter(new Voltage220V()));
    }
}
